package com.excel2db;

import com.workin.excel.imp.module.ImportExcelData;

/**
 * Created by wxg on 2019/1/3 17:37
 */
public interface ExcelReader {
    /**
     * Read excel data
     */
    ImportExcelData read();

    /**
     * Read excel data
     */
    ImportExcelData read(Callback callback);

    /**
     * Import to database with mybatis.
     *
     * @param statement Mybatis statement.
     * @param param     Target data.
     * @return
     */
    int importToDb(String statement, Object param);
}
